package org.example.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.mail.javamail.JavaMailSenderImpl;

//@Configuration
//public class MailConfiguration {
//
//    @Bean
//    public JavaMailSenderImpl JavaMailSender(){
//        JavaMailSenderImpl javaMailSender = new JavaMailSenderImpl();
//        javaMailSender.setHost("smtp.qq.com");
//        javaMailSender.setUsername("xxxxxxx@qq.com");
//        //密码是qq账户中获取的授权码
//        javaMailSender.setPassword("klflaywebbxjdiid");
//        return javaMailSender;
//    }
//}